<script type="text/javascript">
	$(function() {
		window.top.$('#display_center_id').css('display', 'none');
	});
</script>
<body>
	<div class="subnav">
		<div class="content-menu ib-a blue line-x">
			<a href='/content/category/'><em>管理栏目</em></a><span>|</span><a
				href='javascript:;' class="on"><em>编辑栏目</em></a>
		</div>
	</div>
	<form name="myform" id="myform" action="/Content/editCate/"
		onsubmit="return form_submit()" method="post">
		<div class="pad-10">
			<div class="col-tab">
				<ul class="tabBut cu-li">
					<li id="tab_setting_1" class="on"
						onclick="SwapTab('setting','on','',6,1);">基本选项</li>
					<li id="tab_setting_2" onclick="SwapTab('setting','on','',6,2);">生成HTML设置</li>
					<li id="tab_setting_3" onclick="SwapTab('setting','on','',6,3);">SEO设置</li>
				</ul>
				<div id="div_setting_1" class="contentList pad-10">

					<table width="100%" class="table_form ">
						<tr>
							<th width="200"><strong>上级栏目：</strong></th>
							<td><select name="info[parentid]" id="parentid">
									<option value='0'>≡ 作为一级栏目 ≡</option>
									<?php echo $select_categorys ?>
							</select></td>

						</tr>

						<tr>
							<th><strong>栏目名称：</strong></th>
							<td><span id="normal_add"><input type="text"
									name="info[name]" id="name" class="input-text"
									value="<?php echo $Cate_info['Category']['name']?>"></span></td>
						</tr>
						<tr>
							<th><strong>栏目地址：</strong></th>
							<td><span id="normal_add"><input type="text"
									name="info[controller]" id="controller" class="input-text"
									value="<?php echo $Cate_info['Category']['controller']?>"></span></td>
						</tr>
						<tr>
							<th><strong>描述：</strong></th>
							<td><textarea name="info[description]" maxlength="255"
									style="width: 300px; height: 60px;"><?php echo $Cate_info['Category']['description']?>
								</textarea></td>
						</tr>
						<tr>
							<th><strong>是否在导航显示：</strong></th>
							<td><input type='radio' name='info[ismenu]' value='1'<?php
								if($Cate_info['Category']['ismenu']){ ?>checked<?php } ?>>
								是&nbsp;&nbsp;&nbsp;&nbsp; <input type='radio'
								name='info[ismenu]' value='0'<?php
								if(!$Cate_info['Category']['ismenu']){?>checked<?php } ?>> 否</td>
						</tr>
					</table>

				</div>
				<div id="div_setting_2" class="contentList pad-10 hidden">
					<table width="100%" class="table_form ">
						<tr>

							<th width="200"><strong>栏目生成Html：</strong></th>
							<td><input type='radio' name='setting[ishtml]' value='1'<?php
								if($Cate_info['Category']['setting']['ishtml']){ ?>checked<?php } ?>
								> 是&nbsp;&nbsp;&nbsp;&nbsp; <input type='radio'
								name='setting[ishtml]' value='0'<?php
								if(!$Cate_info['Category']['setting']['ishtml']){ ?>checked<?php } ?>>
								否</td>
						</tr>
						<tr>

							<th><strong>内容页生成Html：</strong></th>
							<td><input type='radio' name='setting[content_ishtml]'
								value='1'<?php
								if($Cate_info['Category']['setting']['content_ishtml']){
								?>checked<?php } ?> > 是&nbsp;&nbsp;&nbsp;&nbsp; <input
								type='radio' name='setting[content_ishtml]' value='0'<?php
								if(!$Cate_info['Category']['setting']['content_ishtml']){
								?>checked<?php } ?>> 否</td>
						</tr>
					</table>
				</div>
				<div id="div_setting_3" class="contentList pad-10 hidden">
					<table width="100%" class="table_form ">
						<tr>
							<th width="200"><strong>META Title（栏目标题）</strong><br />针对搜索引擎设置的标题</th>
							<td><input name='setting[meta_title]' type='text'
								id='meta_title' value='<?php echo $Cate_info['Category']['setting']['meta_title']?>'
								size='60' maxlength='60'></td>
						</tr>
						<tr>
							<th><strong>META Keywords（栏目关键词）</strong><br />关键字中间用半角逗号隔开</th>

							<td><textarea name='setting[meta_keywords]'
									id='meta_keywords' style="width: 90%; height: 40px"><?php echo $Cate_info['Category']['setting']['meta_keywords']?>
								</textarea></td>
						</tr>
						<tr>
							<th><strong>META Description（栏目描述）</strong><br />针对搜索引擎设置的网页描述</th>
							<td><textarea name='setting[meta_description]'
									id='meta_description' style="width: 90%; height: 50px"><?php echo $Cate_info['Category']['setting']['meta_description']?>
								</textarea></td>
						</tr>
					</table>
				</div>
				<div class="bk15"></div>
				<input name="id" type="hidden" value="<?php echo $id?>"> <input
					name="dosubmit" type="submit" value="提交" class="button">
			</div>
		</div>
	</form>

</body>